<!DOCTYPE html>
<html lang="zh-Hans-CN">
<head>
    <meta charset="UTF-8">
    <title>内置指令:-model表单元素的双向绑定<</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="../vue.js"></script>
</head>
<body>
<h2>【例10】内置指令:v-model表单元素的双向绑定</h2>
<hr>
<div id="app">
    <input type="text" v-model="msg">
    <h4>输入的信息: {{msg}}</h4>
</div>
<script>
    let vm = new Vue({
        el: '#app',
        data: {
            msg: 'v-model指令'
        }
    })
</script>
<hr>
<p><a href="index.html">返回章节目录</a>
    <script>document.write(document.lastModified); </script>
</p>
</body>
</html>
